<template>
    <view class="page">
    	<changetab :values="tabs" :current="tabindex" ></changetab>
    		
    		<swiper :current="currenttab">
    			<swiper-item>
    				<view class="uni-flex uni-rolumn" v-for="(item,index) in periodrecords">
    				<view></view>
    				<view></view>
    				<view></view>
    				<view></view>
    				</view>

    			</swiper-item>
    			<swiper-item>
    			<view v-for="(item,index) in periodruleList ">
    				<view></view>
    				<view></view>
    				<view></view>
    			</view>

    			</swiper-item>
    		</swiper>























    </view>
</template>

<script>
	import pageHead from '../../../components/page-head.vue'
	import changebar from '.'
    export default {
        onLoad:function(){
        this.initData();

        },
onPullDownRefresh() {
    this.initData();
}

    	watch:{
    	'currenttab':function(val,oldval){

   	 }

    	},


        data(){ 
            return {
            periodrecordList:[],
            periodruleList:[],
            tabs:['按次','批量']

            }

        },





















        methods: {
           queryPeriodRecords: async function(e){
           uni.showNavigationBarLoading();
        	  const res= await queryrecord(formData);
        	  if(res.success){
              periodrecordList.push(res.data.values);
              uni.hideNavigationBarLoading();

        	}
        	else {
            uni.hideNavigationBarLoading();

        }
        },
         queryPeriodRules: async  function(e){
         uni.showNavigationBarLoading();
         const res=await queryrule(formData);
         if(res.success){
         uni.hideNavigationBarLoading();
         this.recordlist.push(res.data.values);

         }else {
         uni.hideNavigationBarLoading();
         
     }
     }
         	

        }
        ,
        watch:{
         'tabindex':function (val ,oldval){
         	if(val!==oldval){
         	
         }
     }
    }                        
    }
</script>

<style>
    @import "../../../common/uni.css";
</style>
